-
Notifications
You must be signed in to change notification settings - Fork 297
test(WPB-19954): add regression tests for history backup and restore #20321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #20321 +/- ##
=======================================
Coverage 45.25% 45.25%
=======================================
Files 1633 1633
Lines 40245 40245
Branches 8325 8325
=======================================
Hits 18211 18211
Misses 20105 20105
Partials 1929 1929
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
9c6a517 to
506bd0a
Compare
|
🔗 Download Full Report Artifact 🧪 Playwright Test Summary
specs/AppLock/AppLock.spec.ts (❌ 1 failed,
|
0a1f0c2 to
be051b8
Compare
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/pageManager/webapp/pages/historyImport.page.ts
Outdated
Show resolved
Hide resolved
0d8cc44 to
ade0b7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds Playwright regression coverage around history backup export and restore flows, plus shared utilities/page objects to support those scenarios.
Changes:
- Introduces a reusable
createAndSaveBackuphelper for exporting and saving history backups. - Adds a new
HistoryBackupE2E spec covering restore scenarios (wrong account, wrong password, conversation rename, mute/archive state, etc.). - Extends conversation list/details page objects with additional locators and a notifications helper.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/webapp/test/e2e_tests/utils/userActions.ts | Adds shared backup export/download helper for E2E tests |
| apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts | New regression suite for history backup/restore scenarios |
| apps/webapp/test/e2e_tests/specs/CriticalFlow/backupRestoration-TC-8634.spec.ts | Reuses the shared backup helper (removes local duplication) |
| apps/webapp/test/e2e_tests/pageManager/webapp/pages/conversationList.page.ts | Adds locator for muted conversation badge |
| apps/webapp/test/e2e_tests/pageManager/webapp/pages/conversationDetails.page.ts | Adds locators + helper for notifications, rename, delete group |
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/pageManager/webapp/pages/conversationDetails.page.ts
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/pageManager/webapp/pages/conversationDetails.page.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
ade0b7e to
e18c1a8
Compare
e18c1a8 to
2cc7f21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/pageManager/webapp/pages/conversationList.page.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
apps/webapp/test/e2e_tests/pageManager/webapp/pages/conversationDetails.page.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/pageManager/webapp/pages/conversationList.page.ts
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
apps/webapp/test/e2e_tests/pageManager/webapp/pages/conversationDetails.page.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/pageManager/webapp/pages/conversationList.page.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
apps/webapp/test/e2e_tests/specs/HistoryBackup/historyBackup.spec.ts
Outdated
Show resolved
Hide resolved
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
This commit introduces a new test suite `historyBackup.spec.ts` to verify the history export and import functionality. Implemented scenarios include: - Importing backups after changing account credentials (email/password) (@TC-118). - Verifying cross-account restoration is prevented (@TC-125). - Verifying restoration with an incorrect password is prevented (@TC-135). - Ensuring conversation states (renames, system messages, mute, archive) are preserved after restore (@TC-131, @TC-133). - Verifying deleted groups do not reappear after restoration (@TC-1097). - added Test steps Refs: WPB-19954
88a5761 to
66cbe0a
Compare
|


https://wearezeta.atlassian.net/browse/WPB-19954
Pull Request
Summary
Security Checklist (required)
Accessibility (required)
Standards Acknowledgement (required)
Notes for reviewers